package com.alibaba.controller;

import com.alibaba.bean.NoteList;
import com.alibaba.bean.NoteListResult;
import com.alibaba.service.NoteListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/note", method = RequestMethod.GET)
public class NoteListController {

    @Autowired
    private NoteListService noteListService;

    @PostMapping("/noteList")
    public NoteListResult note(NoteList noteList) {
        return noteListService.getNoteList(noteList);
    }

}
